package com.itheima.原子类.CAS;

import java.util.concurrent.atomic.AtomicInteger;

public class Test {
    public static void main(String[] args) {

    }
}

 class MyAtomThread implements Runnable{
    AtomicInteger ac=new AtomicInteger();
     @Override
     public void run() {
         for (int i = 0; i < 100; i++) {
           //  int count=ac.incrememtAndGet;
          //   System.out.println("已经送了"+count+"个冰淇淋");

         }
     }
 }